# for
print("for循环:")
s1 = 0
for i1 in range(1, 101):
    s1 += i1
print("1到100的和为:", s1)


# while
print("while循环:")
s2 = 0
i2 = 1
while i2 <= 100:
    s2+= i2
    i2 += 1
print("1到100的和为:", s2)
